int TemplateFunc_GetServiceManager(IBundleContext * pBundleContext, IServiceManager * pServiceManager)
{
    if(NULL == pBundleContext) return USUAL_ERROR;

    int iRet = sspBundleContext->GetServiceManager(&pServiceManager);

    return iRet

}

IIniConfigParser * TemplateFunc_GetIniConfigParser(
                IServiceManager * pServiceManager, 
                const char * configFileName, 
                const cahr * bundleName)
{
    if( NULL == pServiveManager || NULL == logFileName || NULL == bundleName) return NULL;
    IService * pConfigFactory = NULL;
    pServiceManager->GetService(IID_ConfigParserFactory, &pConfigFactory, SID_ConfigParserFactory, 0);
    if(NULL == pConfigFactory) return NULL;
    IINIConfigParser * pIniConfigParser = (IINIConfigParser *)pConfigFactory->CreateConfigParser(configFileName,bundleName,INI);
    if(NULL == pIniConfigParser) return NULL;
    return pIniConfigParser;
}

IIniConfigParser * TemplateFunc_GetXmlsConfigParser(
                IServiceManager * pServiceManager, 
                const char * configFileName, 
                const cahr * bundleName)
{
    if( NULL == pServiveManager || NULL == logFileName || NULL == bundleName) return NULL;
    IService * pConfigFactory = NULL;
    pServiceManager->GetService(IID_ConfigParserFactory, &pConfigFactory, SID_ConfigParserFactory, 0);
    if(NULL == pConfigFactory) return NULL;
    IXMLConfigParser * pXmlConfigParser = (IINIConfigParser *)pConfigFactory->CreateConfigParser(configFileName,bundleName,XML);
    if(NULL == pXmlConfigParser) return NULL;
    return pXmlConfigParser;
}

